package com.dcw.lixb.designmode.flyweight;

/**
 * @author lixiaobin
 * @date 2020-07-23 15:30:31
 * @desc 描述信息
 */
public class Circle implements Shape {
    private int x;
    private int y;
    private int radius;
    private String color;

    public Circle(String color) {
        this.color = color;
    }

    public void setX(int x) {
        this.x = x;
    }

    public void setY(int y) {
        this.y = y;
    }

    public void setRadius(int radius) {
        this.radius = radius;
    }

    @Override
    public void draw() {
        System.out.println(this +"[x:"+x+" ,y:"+y+" ,radius:"+radius+" ,color:"+color+"]");
    }
}
